package com.institute.service;

import java.util.List;

import org.springframework.data.domain.Page;
import org.springframework.data.domain.Pageable;
import org.springframework.data.jpa.domain.Specification;

import com.institute.entity.Institute;
import com.institute.entity.Position;
import com.institute.entity.dto.PositionDTO;

public interface IPositionService {
	public Position findOne(Long id);
	public List<Position> findAll();
	public Institute getDept(Position position);
	public Integer getStaffNum(Long id);
	public Page<PositionDTO> findAll(Specification<Position> spec, Pageable pageable);
	public void saveOrUpdate(PositionDTO dto);
	public void delete(Long id);
	public boolean hasStaffs(Long id);
	public List<PositionDTO> findByDeptName(String deptName);
	public void changeDept(Long id,Long deptId);
	public boolean isNameExist(PositionDTO dto);
	public boolean isCodeExist(PositionDTO dto);
}
